package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.ProductCustomFieldHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/productCustomField", r.somsHandler.ListProductCustomField())
	group.GET("/productCustomField/:id", r.somsHandler.GetProductCustomField())
	group.PUT("/productCustomField", r.somsHandler.AddProductCustomField())
	group.POST("/productCustomField/:id", r.somsHandler.EditProductCustomField())
	group.DELETE("/productCustomField/:id", r.somsHandler.DeleteProductCustomField())
	group.POST("/batchDeleteProductCustomField", r.somsHandler.BatchDeleteProductCustomField())
}